package morpion;

public class Main {
	public static void main(String args[]){
		Morpion m=new Morpion();
	
		//Player h1=new Human(Morpion.WHITE,"Mathieu");
		
		Player c1=new Computer(Morpion.WHITE);
		Player c2=new Computer(Morpion.BLACK);
		System.out.println(m.toString());
		
		//JEU
		while(m.end()==2){
			c1.jouer(m);
			System.out.println(m.toString());
			if(m.end()==2){
				c2.jouer(m);
				System.out.println(m.toString());
			}
		}
		System.out.println("Le joueur "+m.end()+" gagne");
		c1.affiche_coups(c2.getCoups());
		
		Reseau r=new Reseau(3,5);
		r.Affiche_reseau();
		
		if(r.mettre_poids_arete(2, 5, -1, 1)==0)
		{
			r.Affiche_reseau();
		}
		else
		{
			System.out.println("ca cloche!");
		}
		
		if(r.mettre_poids_sommet(1, 2)==0)
		{
			r.Affiche_reseau();
		}
		else
		{
			System.out.println("non de non");
		}
	}
}
